﻿<!--
//********************************************************************************//
//创建日期：<创建日期，2016-03-30>
//创建作者：<郭登杰，guodengjie@shanghai3h.com>
//功能说明：打印账单
//********************************************************************************//
    -->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="../../../../css/main.css" rel="stylesheet" />
    <link href="/JS/layui-v2.2.45/css/layui.css" rel="stylesheet" />
    <script src="/JS/layui-v2.2.45/layui.js"></script>
    <script src="../../../../JS/AddEditCancel.js"></script>
    <script src="../../../../PageJS/common.verify.js"></script>
    <script defer src="../../../../JS/jquery-1.11.1.min.js"></script>
    <script defer src="../../../../PageJS/wap.js"></script>
    <script defer src="../../../../PageJS/common.js"></script>
    <script defer src="/PageJS/QSSF/DaYinZD_doing.js"></script>
</head>
<body>
    <form class="layui-form">
        <div id="divContent" style="width:98%;margin:auto">
            <div class="tabletitle1" align="center" style="height:23px">
                账单打印
            </div>
            <div class="layui-tab layui-tab-brief">
                <ul class="layui-tab-title">
                    <li class="layui-this" style="font-size:14px">打印</li>
                    <li style="font-size:14px">已打管理</li>
                    <li style="font-size:14px">打印统计</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label" style="width:60px">用户号:</label>
                                <div class="layui-input-inline" style="width: 80px;">
                                    <input id="cYHH" class="layui-input" />
                                </div>
                                <label class="layui-form-label" style="width:50px">水量年:</label>
                                <div class="layui-input-inline" style="width: 55px;">
                                    <input id="cY1" autocomplete="off" class="layui-input" onkeydown="return onlyNum();" value="2015">
                                </div>
                                <div class="layui-form-mid">-</div>
                                <div class="layui-input-inline" style="width: 55px;">
                                    <input id="cY2" autocomplete="off" class="layui-input" onkeydown="return onlyNum();" value="2018">
                                </div>
                                <div class="layui-input-inline" style="width:170px">
                                    <input type="radio" name="cType" title="已打印" value="1">
                                    <input type="radio" name="cType" title="未打印" value="0" checked>
                                </div>
                                <div class="layui-input-inline" style="width:70px">
                                    <button id="oSearch" class="layui-btn layui-btn-primary" type="button">查询</button>
                                    <button id="oReset" class="layui-btn layui-btn-primary" type="button" style="display:none">重置</button>
                                </div>
                            </div>
                            <div class="layui-inline" style="float:right;padding-right:0px;width:263px;">        
                                <label class="layui-form-label" style="width:70px;padding-right:3px">收费方式:</label>
                                <div class="layui-input-inline" style="width:70px">
                                    <select id="oiSFFS">
                                        <option value="-1" selected>&nbsp;</option>
                                        <option value="1">现金</option>
                                        <option value="3">支票</option>
                                        <option value="4">付委</option>
                                        <option value="5">托收</option>
                                    </select>
                                </div>                        
                                <div class="layui-input-inline" style="width:100px;">
                                    <button id="btnPrint" class="layui-btn layui-btn-primary" type="button" style="width:100%;padding-left:22px;padding-right:22px;">打&nbsp;&nbsp;印</button>
                                    <button id="btnPrintSaving" class="layui-btn layui-btn-primary" type="button" style="display: none; width: 100%">补打存根</button>
                                </div>
                            </div>
                        </div>
                        <div>
                            <table id="ContentList1">
                            </table>
                            <script type="text/html" id="iDYZT">
                                {{#  if(d.I_ZHUANGTAI == 1){ }}
                                <i class="layui-icon" style="font-size: 15px; color:#1e9fff;">&#xe605;</i>
                                {{#  }  }}
                            </script>
                        </div>
                        <div class="layui-input-inline" style="width:165px">
                            <label class="layui-form-label" style="width:70px;padding:0px">当前发票：</label>
                            <label class="layui-form-label" id="lsBillNo" style="width:80px;padding:0px"></label>
                        </div>
                        <div style="display:none">
                            <span style="float:right">选中条数:<label id="lsCount">0</label>&nbsp;&nbsp;&nbsp;&nbsp;总金额:<label id="lsMoney">0</label></span>
                        </div>
                        <hr />
                        <div style="text-align: right;padding-top:3px">

                        </div>
                        <label id="ObjId" vid="0"></label>
                    </div>
                    <div class="layui-tab-item">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <div class="layui-input-inline" style="width:70px">
                                    <button id="o2Operate" class="layui-btn layui-btn-primary" type="button">变更</button>
                                </div>
                                <label class="layui-form-label" style="width:60px">水量年月:</label>
                                <div class="layui-input-inline" style="width: 70px;">
                                    <input id="c2YM" autocomplete="off" class="layui-input" onkeydown="return onlyNum();">
                                </div>
                                <label class="layui-form-label" style="width:100px">发票号/费用号:</label>
                                <div class="layui-input-inline" style="width: 70px;">
                                    <input id="c2HM" autocomplete="off" class="layui-input">
                                </div>
                                <label class="layui-form-label" style="width:60px">打印日期:</label>
                                <div class="layui-input-inline" style="width:90px">
                                    <input id="c2PrintDate" class="layui-input" />
                                </div>
                                <div class="layui-input-inline" style="width:150px">
                                    <input type="checkbox" id="c2Printed1" name="c2Printed" lay-skin="primary" lay-filter="cPrinted" title="成功" value="1" checked>
                                    <input type="checkbox" id="c2Printed0" name="c2Printed" lay-skin="primary" lay-filter="cPrinted" title="打坏" value="2" checked>
                                </div>
                                <div class="layui-input-inline" style="width:150px">
                                    <button id="o2Search" class="layui-btn layui-btn-primary" type="button">查询</button>
                                </div>
                            </div>
                        </div>
                        <div>
                            <table id="ContentList2">
                            </table>
                        </div>
                    </div>
                    <div class="layui-tab-item">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label" style="width:60px">打印日期:</label>
                                <div class="layui-input-inline" style="width:90px">
                                    <input id="c3PrintDate" class="layui-input" />
                                </div>
                                <div class="layui-input-inline" style="width:150px">
                                    <button id="o3Search" class="layui-btn layui-btn-primary" type="button">查询</button>
                                    <button id="o3Clear" class="layui-btn layui-btn-primary" type="button">清空</button>
                                </div>
                            </div>
                        </div>
                        <div style="overflow: auto;width:100%; height: 470px; border: 1px solid #e2e2e2;vertical-align:top ">
                            <table id="ContentList3" name="ContentList3" class="layui-table" style="width:100%">
                                <thead>
                                    <tr>
                                        <th style="width: 100px; text-align: center">发票起始号码</th>
                                        <th style="width:100px;text-align: center">发票结束号码</th>
                                        <th style="width:80px;text-align: center">数量</th>
                                        <th style="width: 100px; text-align: center">打印日期</th>
                                        <td></td>
                                    </tr>
                                </thead>
                            </table>
                            <table id="ItemStr3" style="display: none">
                                <tr class="datarow" style="cursor:pointer" vid="objDaYinRQ">
                                    <td style="text-align:center">objQISHIFPHM</td>
                                    <td style="text-align:center">objJIESHUFPHM</td>
                                    <td style="text-align:center">objSL</td>
                                    <td style="text-align:center">objDaYinRQ</td>
                                    <td></td>
                                </tr>
                            </table>
                        </div>
                        <div style="font-size:20px">
                            <span>&nbsp;&nbsp;记录条数: <label id="ls3Count" style="color:green">0</label> </span>
                            &nbsp;&nbsp;
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
